{% set local_ip = inventory_hostname + ':' + '6443' %}
apiVersion: v1
clusters:
- cluster:
    certificate-authority: {{ k8s_link_dir }}/ssl/ca.pem
    server: https://{{ local_ip }}
  name: kubernetes
contexts:
- context:
    cluster: kubernetes
    user: admin
  name: default
current-context: default
kind: Config
preferences: {}
users:
- name: admin
  user:
    client-certificate: {{ k8s_link_dir }}/ssl/admin.pem
    client-key: {{ k8s_link_dir }}/ssl/admin-key.pem
